package com.tongda.core.vo;

import java.io.Serializable;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

/**
 * The persistent class for the cm_cash_discount database table.
 * 
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class CashDiscount {

	private String ccdId;

	private String discountName;

	private String enableStatus;

	private String isOnlyMember;

	private Integer mainDiscount;

	private String mainDiscountPercent;

	private String rolesArray;

	private List<DinerBill> dinerBills;

	private String enableStatusName;

	private String rolesName;

	private String dishesTypeDiscount;

	public CashDiscount() {
	}

	public String getCcdId() {
		return this.ccdId;
	}

	public void setCcdId(String ccdId) {
		this.ccdId = ccdId;
	}

	public String getDiscountName() {
		return this.discountName;
	}

	public void setDiscountName(String discountName) {
		this.discountName = discountName;
	}

	public String getEnableStatus() {
		return this.enableStatus;
	}

	public void setEnableStatus(String enableStatus) {
		this.enableStatus = enableStatus;
	}

	public String getIsOnlyMember() {
		return this.isOnlyMember;
	}

	public void setIsOnlyMember(String isOnlyMember) {
		this.isOnlyMember = isOnlyMember;
	}

	public Integer getMainDiscount() {
		return this.mainDiscount;
	}

	public void setMainDiscount(Integer mainDiscount) {
		this.mainDiscount = mainDiscount;
	}

	public String getRolesArray() {
		return this.rolesArray;
	}

	public void setRolesArray(String rolesArray) {
		this.rolesArray = rolesArray;
	}

	public List<DinerBill> getDinerBills() {
		return dinerBills;
	}

	public void setDinerBills(List<DinerBill> dinerBills) {
		this.dinerBills = dinerBills;
	}

	public void setEnableStatusName(String enableStatusName) {
		this.enableStatusName = enableStatusName;
	}

	public String getRolesName() {
		return rolesName;
	}

	public void setRolesName(String rolesName) {
		this.rolesName = rolesName;
	}

	public String getDishesTypeDiscount() {
		return dishesTypeDiscount;
	}

	public void setDishesTypeDiscount(String dishesTypeDiscount) {
		this.dishesTypeDiscount = dishesTypeDiscount;
	}

	public String getMainDiscountPercent() {
		mainDiscountPercent = String.valueOf(mainDiscount) + "%";
		return mainDiscountPercent;
	}

	public void setMainDiscountPercent(String mainDiscountPercent) {
		this.mainDiscountPercent = mainDiscountPercent;
	}
}